package com.phiture.erp.produce.core.pojo.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import com.phiture.erp.common.constants.DictTypeConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 主计划 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProduceMainPlanRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5045")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "计划编码")
    @ExcelProperty("计划编码")
    private String no;

    @Schema(description = "源单据ID", example = "14502")
    @ExcelProperty("源单据ID")
    private Long sourceBillId;

    @Schema(description = "来源单据编码")
    @ExcelProperty("来源单据编码")
    private String sourceBillNo;

    @Schema(description = "来源单据行号", example = "5676")
    @ExcelProperty("来源单据行号")
    private Long sourceDetailId;

    @Schema(description = "物料ID", example = "16698")
    @ExcelProperty("物料ID")
    private Long materialId;

    @Schema(description = "物料名称", example = "16698")
    @ExcelProperty("物料名称")
    private String materialName;

    @Schema(description = "单位", example = "18186")
    @ExcelProperty("单位")
    private Long unitId;

    @Schema(description = "单位", example = "件")
    @ExcelProperty("单位")
    private String unitName;

    @Schema(description = "规格型号")
    @ExcelProperty("规格型号")
    private String mode;

    @Schema(description = "数量")
    @ExcelProperty("数量")
    private BigDecimal qty;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "开工日期")
    @ExcelProperty("开工日期")
    private LocalDateTime startDate;

    @Schema(description = "完工日期")
    @ExcelProperty("完工日期")
    private LocalDateTime endDate;

    @Schema(description = "物料属性")
    @ExcelProperty("物料属性")
    @DictFormat(DictTypeConstants.ERP_MATERIAL_ATTR)
    private Integer materialAttr;


    @Schema(description = "MRP选单")
    @ExcelProperty("MRP选单")
    private Integer mrpSelected;

    @Schema(description = "状态", example = "1")
    @ExcelProperty("状态")
    private Integer status;

}